@charset "utf-8";
/**
 * Created by kroyo on 2017/12/14.
 * login  
 */

@import 'common/reset';
@import 'common/mixincommon';


html,body{
    width: 100%;
    height: 100%;
    background-color: #00A0E9;
}

body{
    background: url(../img/login/loginbg.png) no-repeat center;
    background-size: cover;
    overflow: hidden;
}



.main{
    padding: r(140px) r(30px) 0;
    .logo{
        width: r(321px);
        height: r(81px);
        background-image: url(../img/login/logo.png);
        background-size: 100%;
        margin: 0 auto;
    }
}

.main-form{
    width: 100%;
    height: r(600px);
    background-color: #ffffff;
    @include borradius(r(10px));
    @include box_shadows(0px,2px,r(10px),0px,rgba(0, 0, 0, 0.2));
    padding: 0 r(30px);
    margin-top: r(120px);
    //登录方式 start
    .login-type{
        position: relative;
        width: 100%;
        height: r(100px);
        line-height: r(100px);
        font-size: 0;
        text-align: center;
        .type-btn{
            display: inline-block;
            width: 50%;
            height: 100%;
            font-size: r(32px);
            color: $s9;
        }
        span{
            position: relative;
            display: inline-block;
            height: 100%;
            &:after{
                display: block;
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                width: 100%;
                height: r(4px);
                background-color: $acolor;
                @include transitions(.4s);
                -webkit-transform-origin: center;
                transform-origin: center;
                @include transformt(scale(0,1));
            }
        }
        .type-btn:first-of-type:before{
            position: absolute;
            top: r(30px);
            right: 50%;
            display: block;
            content: '';
            width: 1px;
            height: r(40px);
            background-color: $sc;
        }
        .type-btn.active{
            color: $acolor;
            span:after{
                @include transformt(scale(1,1));
            }
        }
    }
    //登录方式 end
    .login-content{
        margin-top: r(40px);
    }
    .view-password{
        display: none;
    }
    .inputtext{
        width: 100%;
        height: r(90px);
        border: 1px solid $borcolor;
        @include borradius(r(10px));
        @include inputplace(#bbbbbb);
        padding: 0 r(20px);
        font-size: r(32px);
        color: $s3;
        margin-bottom: r(40px);
    }
    .input-code{
        font-size: r(32px);
        input{
            float: left;
            width: r(390px);
        }
        .send-codebtn{
            float: right;
            display: inline-block;
            width: r(220px);
            height: r(90px);
            line-height: r(90px);
            color: #ffffff;
            text-align: center;
            background-color: $acolor;
            @include borradius(r(10px));
        }
    }
    //登录 、注册按钮
    .getbtn{
        display: block;
        width: 100%;
        height: r(90px);
        line-height: r(90px);
        color: #ffffff;
        font-size: r(32px);
        text-align: center;
        background-color: $acolor;
        @include borradius(r(10px));
    }
    .toget{
        display: block;
        width: 100%;
        height: r(110px);
        line-height: r(110px);
        color: $acolor;
        font-size: r(32px);
        text-align: center;
    }
}








//单选按钮
.radio-wrap{
    display: inline-block;
    font-size: 0;
    vertical-align: middle;
    input{
        display: none;
    }
    label{
        line-height: r(44px);
        font-size: r(32px);
        color: #bbbbbb;
        vertical-align:middle; 
        @include transitions(.4s);
    }
    .check{
        position: relative;
        display: inline-block;
        width: r(44px);
        height: r(44px);
        margin-right:r(20px); 
        vertical-align: r(-10px);
        &:after{
            position: absolute;
            top:r(12px);
            left: r(12px);
            display: block;
            content: '';
            width: r(20px);
            height: r(20px);
            background-color: transparent;
            box-sizing: border-box;
            @include borradius(50%);
            @include transitions(.4s);
        }
        &:before{
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            content: '';
            width: 100%;
            height: 100%;
            border: r(1px) solid #ddd;
            @include borradius(50%);
            box-sizing: border-box;
            @include transitions(.4s);
        }
    }
    &:hover{
        label{
            color: $acolor;
        }
        .check:before{
            border-color:$acolor;
        }
    }
    input:checked~label{
        color: $acolor;
        .check{
            &:after{
                background-color: $acolor;
            }
            &:before{
                border-color:$acolor;
            }
        }
    }
}




.register-main{
    .main-form{
        height: r(716px);
    }    
    .register-content{
        padding-top: r(40px);
    }
    .register-type{
        margin-bottom: r(40px);
    }
    .type-problem{
        position: relative;
        display: inline-block;
        width: r(32px);
        height: r(32px);
        background-color: $sc;
        @include borradius(50%);
        vertical-align: middle;
        &:after{
            position: absolute;
            top: r(5px);
            left: r(9px);
            display: block;
            content: '';
            width: r(14px);
            height: r(21px);
            background: url(../img/icon-problem.png) no-repeat center;
            background-size: 100%;
        }
    }
}




.pop-view{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9; 
    background-color: rgba(0,0,0,.5);
    .view-content{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: r(640px);
        height: r(260px);
        line-height: r(130px);
        @include box_shadows(0px,0px,3px,0px,rgba(0, 0, 0, 0.1));
        @include borradius(r(10px));
        background-color: #ffffff;
        margin: auto;
        text-align: center;
        h4{
            height: 50%;
            font-size: r(32px);
            font-weight: normal;
            color: $s3;
            border-bottom: r(1px) solid $sc;
        }
        p{
            height: 50%;
            font-size: r(32px);
            color: $s6;
        }
        .view-icon{
            width: r(48px);
            height: r(48px);
            background: url(../img/icon-closew.png) no-repeat center;
            background-size: 100%;
            margin: r(40px) auto 0;
        }
    }
}
